#import "~/graphql_shared/fragments/page_info.fragment.graphql"
#import "./epic.fragment.graphql"

query roadmapGroupEpics(
  $fullPath: ID!
  $state: EpicState
  $sort: EpicSort
  $iid: ID
  $timeframe: Timeframe
  $labelName: [String!] = []
  $authorUsername: String = ""
  $milestoneTitle: String = ""
  $myReactionEmoji: String
  $confidential: Boolean
  $search: String = ""
  $first: Int = 50
  $not: NegatedEpicFilterInput
  $endCursor: String = ""
  $topLevelHierarchyOnly: Boolean = false
  $includeDescendantGroups: Boolean = true
) {
  group(fullPath: $fullPath) {
    id
    name
    epics(
      iid: $iid
      state: $state
      sort: $sort
      labelName: $labelName
      authorUsername: $authorUsername
      milestoneTitle: $milestoneTitle
      myReactionEmoji: $myReactionEmoji
      confidential: $confidential
      search: $search
      first: $first
      timeframe: $timeframe
      not: $not
      after: $endCursor
      topLevelHierarchyOnly: $topLevelHierarchyOnly
      includeDescendantGroups: $includeDescendantGroups
    ) {
      edges {
        node {
          ...BaseEpic
          parent {
            id
          }
        }
      }
      pageInfo {
        ...PageInfo
      }
    }
  }
}
